//阚子路
#ifndef COMPONENTPARAM_H
#define COMPONENTPARAM_H

#include <QString>
#include <QString>

class ComponentParam {
public:
    int id = 0;
    QString type;
    float currentPower = 0.0f;
    float soc = 0.0f; // 荷电状态（仅储能组件使用）

    ComponentParam() = default;
    ComponentParam(int _id, const QString& _type, float _power, float _soc = 0.0f)
        : id(_id), type(_type), currentPower(_power), soc(_soc) {}
};

#endif // COMPONENTPARAM_H
